package org.example.mybatisplus.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName(value = "emp")
public class Emp {
    @TableId(value="empno",type = IdType.AUTO)
    private Integer empNo;
    private String ename;
    private Integer mgr;
    private String job;
    @TableField(value = "hiredate",fill = FieldFill.INSERT_UPDATE)
    private String hireDate;
    private Double sal;
    private Double comm;
    @TableField(value = "deptno")
    private Integer deptNo;
     //设置局部逻辑删除方式
    // @TableLogic(delval = "0", value = "1")
    private Integer state;
    @TableField(exist = false)
    private String abc;

}
